package com.sun.showcase.client.domain.mall;

import org.apache.commons.lang3.builder.EqualsBuilder;
import org.apache.commons.lang3.builder.HashCodeBuilder;
import org.apache.commons.lang3.builder.ToStringBuilder;

public class Comment implements java.io.Serializable{
	private static final long serialVersionUID = 5454155825314635342L;
    /**
     * ID       db_column: id 
     */	
	private String id;
    /**
     * 几星       db_column: start
     */
	private Integer start;
    /**
     * 内容       db_column: content
     */
	private String content;
    /**
     * 店铺id       db_column: shop_id
     */
	private String shopId;
    /**
     * 用户id       db_column: user_id
     */
	private String userId;
    /**
     * 用户名       db_column: user_name
     */
	private String userName;
    /**
     * 订单id       db_column: order_id
     */
	private String orderId;
    /**
     * 订单号       db_column: order_no
     */
	private String orderNo;
    /**
     * 商品id       db_column: goods_id
     */
	private String goodsId;
    /**
     * 商品名       db_column: goods_name
     */
	private String goodsName;
    /**
     * SKU_ID       db_column: sku_id
     */
	private String skuId;
    /**
     * SKU名       db_column: sku_name
     */
	private String skuName;
    /**
     * 是否显示（1是0否）       db_column: show_status
     */
	private String showStatus;
    /**
     * 回复       db_column: reply
     */
	private String reply;
    /**
     * 排序号       db_column: order_num
     */
	private Integer orderNum;
    /**
     * 创建时间       db_column: create_date
     */
	private java.util.Date createDate;

	private String headImage;

	public String getHeadImage() {
		return headImage;
	}

	public void setHeadImage(String headImage) {
		this.headImage = headImage;
	}
	//columns END

	public Comment(){
	}

	public Comment(
		String id
	){
		this.id = id;
	}

	public void setId(String value) {
		this.id = value;
	}

	public String getId() {
		return this.id;
	}
	public void setStart(Integer value) {
		this.start = value;
	}

	public Integer getStart() {
		return this.start;
	}
	public void setContent(String value) {
		this.content = value;
	}

	public String getContent() {
		return this.content;
	}
	public void setShopId(String value) {
		this.shopId = value;
	}

	public String getShopId() {
		return this.shopId;
	}
	public void setUserId(String value) {
		this.userId = value;
	}

	public String getUserId() {
		return this.userId;
	}
	public void setUserName(String value) {
		this.userName = value;
	}

	public String getUserName() {
		return this.userName;
	}
	public void setOrderId(String value) {
		this.orderId = value;
	}

	public String getOrderId() {
		return this.orderId;
	}
	public void setOrderNo(String value) {
		this.orderNo = value;
	}

	public String getOrderNo() {
		return this.orderNo;
	}
	public void setGoodsId(String value) {
		this.goodsId = value;
	}

	public String getGoodsId() {
		return this.goodsId;
	}
	public void setGoodsName(String value) {
		this.goodsName = value;
	}

	public String getGoodsName() {
		return this.goodsName;
	}
	public void setSkuId(String value) {
		this.skuId = value;
	}

	public String getSkuId() {
		return this.skuId;
	}
	public void setSkuName(String value) {
		this.skuName = value;
	}

	public String getSkuName() {
		return this.skuName;
	}
	public void setShowStatus(String value) {
		this.showStatus = value;
	}

	public String getShowStatus() {
		return this.showStatus;
	}
	public void setReply(String value) {
		this.reply = value;
	}

	public String getReply() {
		return this.reply;
	}
	public void setOrderNum(Integer value) {
		this.orderNum = value;
	}

	public Integer getOrderNum() {
		return this.orderNum;
	}
	public void setCreateDate(java.util.Date value) {
		this.createDate = value;
	}
	
	public java.util.Date getCreateDate() {
		return this.createDate;
	}

	public String toString() {
		return ToStringBuilder.reflectionToString(this);
	}
	
	public int hashCode() {
		return new HashCodeBuilder()
			.append(getId())
			.toHashCode();
	}
	
	public boolean equals(Object obj) {
		if(obj instanceof Comment == false) return false;
		if(this == obj) return true;
		Comment other = (Comment)obj;
		return new EqualsBuilder()
			.append(getId(),other.getId())
			.isEquals();
	}
}

